package cfdt.ldl;

import cfdt.common.system.ApplicationEnvironment;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient
@EnableCaching
@ComponentScan("cfdt")
public class FileApplication {

    private static final Logger logger = LoggerFactory.getLogger("FileApplication");

    public static void main(String[] args) {
        try {
            SpringApplication.run(FileApplication.class, args);
            ApplicationEnvironment.printStartSuccess();
        } catch (Exception e) {
            logger.error("", e);
            ApplicationEnvironment.printStartFailed();
            throw e;
        }

    }
}
